<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="web" uri="http://meerkat.qunar.com/web"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<web:designCss/>
<%@include file="/WEB-INF/include/head.jsp" %>
</head>
<body>
    <div class="wrapper">
        <web:titleBar title="添加用户组" />
        <div class="main content">
        <form id="groupAddForm">
        <table>
                <tr>
                    <td><span style="color:red;">*</span>用户组名称</td>
                    <td><input type="text" id="name" name="name" value="" /></td>
                </tr>
                <tr>
                    <td><span style="color:red;">*</span>描述</td>
                    <td><textarea id="description" name="description" cols="40" rows="10"></textarea></td>
                </tr>
                <tr>
                    <td colspan="2">
                        <input type="submit" class="button button-blue" value="提交"/>
                    </td>
                </tr>
        </table>
        </form>
        </div>
    </div>
    <script>
    $(document).ready(function(){
        $('#groupAddForm').bind("submit", function(){
            return Qadmin.FW.Ajax.post({
                url: QG_CONFIG.PATH + 'group/add.htm',
                formId: 'groupAddForm'
            }, function(xhr){
                Qadmin.FW.Url.goToUrl(QG_CONFIG.PATH + 'group/list.htm');
            });
        });
    });
    </script>
</body>
</html>
